package com.baomidou.springmvc.common.result;

import java.util.LinkedHashMap;

@SuppressWarnings("serial")
public class RequestDTO extends LinkedHashMap<String, Object> {

	public String getParam(String key) {
		if (!containsKey(key)) {
			return null;
		}
		try {
			return get(key).toString();
		} catch (Exception e) {
			return null;
		}
	}
	
	public Integer getIntParam(String key) {
		if (!containsKey(key)) {
			return null;
		}
		try {
			return Integer.parseInt(get(key).toString());
		} catch (Exception e) {
			return null;
		}
	}
	
	
}
